import request from '@/utils/http'
import type { equipmentSaveModel } from './equipmentModel'

// 获取设备状态

export const getEquipmentStatus = (params: any) => {
  return request.post({
    url: '/api/patient/device/query',
    data: params
  })
}

// 绑定设备
export const bindEquipment = (params: any) => {
  return request.post({
    url: '/api/patient/device/save',
    data: params
  })
}

// 解除绑定
export const unbindEquipment = (params: any) => {
  return request.get({
    url: `/api/patient/device/unbind?deviceNo=${params}`
  })
}

// 保存报告
export const saveReport = (params: equipmentSaveModel) => {
  return request.post({
    url: '/api/patient/indicator/report/saveReport',
    data: params
  })
}
